home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / qwhite.zip / AUTOSCRI.TEC < prev    next >
Text File  |  1992-03-09  |  7KB  |  152 lines

  1. ID:SC Startup Scripts to Automate DESQview
  2. Quarterdeck Technical Note #153
  3. by Bob Perry
  4.  
  5. HOW TO AUTOMATE DESQview - STARTUP SCRIPTS
  6.  
  7. Q: How can I automatically startup DESQview?
  8. Q: How can I configure DESQview to automatically startup all my applications?
  9. Q: How can I configure DESQview so that when I open a window it automatically 
  10.    loads the right file, or otherwise does things in that application for me? 
  11. Q: How can I integrate all of the above?
  12.  
  13.  
  14. First, you must have a version of DESQview which is 2.0 or greater. Assuming 
  15. you have this, proceed as follows:
  16.  
  17. A fully automated DESQview involves three levels of automation:
  18.      1-Modification of your AUTOEXEC.BAT,
  19.      2-Creation of an auto startup script on the DESQview menu,
  20.      3-Creation of startup scripts for your applications.
  21.  
  22. Step One - Loading DESQview upon system boot up.
  23.  
  24. By modifying your AUTOEXEC.BAT file, you can boot right into DESQview. This is 
  25. our recommended procedure.  To do so, you only need to add two simple lines to 
  26. this file:
  27.  
  28.      cd\dv
  29.         dv
  30.  
  31. The first line changes directories to the DESQview directory, and the second 
  32. line executes the program. Users who invoke DESQview with xdv would have xdv 
  33. as the second line.  These should be the LAST lines of your AUTOEXEC.BAT file.
  34.  
  35. Step Two - Creating a startup script on the DESQview menu.
  36.      
  37. As described on page 89 of the DESQview version 2 manual, the special 
  38. technique distinguishing a STARTUP script is the "!" exclamation point key.  
  39. This is done as follows:
  40.  
  41.      -Begin at the original DESQview Open Window menu, with no 
  42.       other programs open or running.
  43.  
  44.      -Hold down the Shift and tap your {DESQ} key, to enter 
  45.       the DESQview Learn menu.
  46.  
  47.      -At first menu, type "=" to Start a Script.
  48.  
  49.      -At the prompt "Press the key you want to redefine", 
  50.       choose a key you want to define for the script.  If you
  51.       don't want to "use up" any keys, try HOLDING DOWN the Alt 
  52.       key and then pressing a 3-digit number on the numeric 
  53.       keypad (try 2 5 0).  This will result in the "key" being 
  54.       {250}, a key you will be unlikely to type.
  55.  
  56.      -The next menu asks you to name your script.  Begin the      
  57.       name of the script with the exclamation point character 
  58.       "!".  The exclamation point as the first character in 
  59.       the script name is the key which makes it an auto-start 
  60.       script.
  61.  
  62.      -FROM THIS POINT ONWARD, DESQview WILL BE "REMEMBERING" 
  63.       EACH KEYSTROKE YOU MAKE.
  64.  
  65. HINT: As with any DESQview script, use only the alpha-numeric keyboard keys 
  66. when you select from menus.  Do not use cursor keys or try to teach your mouse 
  67. a script!  Cursor keys are not as reliable when selecting from menus and mouse 
  68. movements, and clicks are not keystrokes and therefore cannot be learned in a 
  69. "Keyboard macro."
  70.  
  71.      -A typical pattern of keystrokes might go like this:
  72.       {DESQ} O W P   (for Open Word Processor)
  73.       {DESQ} O L 2   (for Open Lotus 1-2-3, release 2)
  74.       {DESQ} O D 1   (for Open DOS (128K) window)
  75.       {DESQ} O D D   (for Open DESQview Datebook)
  76.       etc.
  77.  
  78.      -When you've opened all your needed applications in the
  79.       right sequence, hit Shift-{DESQ} again, and hit
  80.       the "-" key to finish the script.
  81.  
  82.      -Now in order to have the script available on the next 
  83.       time you start DESQview, you must save it.  REMEMBER, 
  84.       scripts must be saved at the same level of DESQview as 
  85.       they were begun, so if this is the main DESQview auto-
  86.       start script, bring up the DESQview menu, hit Shift-Alt 
  87.       to bring up the Learn menu, hit "S" for Save and save to 
  88.       the default DESQVIEW.DVS file.
  89.  
  90. Now, when your AUTOEXEC.BAT file boots you directly into DESQview, DESQview 
  91. will automatically launch your applications in exactly the order you want them 
  92. opened.  
  93.  
  94. Note that if you have any startup scripts for your applications, your DESQview 
  95. menu startup script will launch these as well!  See the next section on how to 
  96. write such an application startup script.
  97.  
  98. Step 3 - Writing a startup script for your applications.
  99.  
  100. With DESQview's powerful Learn feature you can "teach" any application to 
  101. perform the same series of keystrokes each and every time that DESQview window 
  102. is opened. This is particularly useful for typing headers, loading a file, 
  103. displaying application directories, configuration alterations, and other 
  104. routine keystrokes that are repeated by the user each time the application 
  105. window is opened.
  106.  
  107.      -Begin by opening the application program in DESQview.
  108.  
  109.      -Depress the Shift and tap the {DESQ} key to enter the 
  110.       Learn menu.
  111.  
  112.      -At the first menu, choose "=" to Start Learning.
  113.  
  114.      -When the prompt "Press the key you want to redefine"
  115.       appears, select some obscure combination of keys that
  116.       you would never hit accidently.  Better yet, choose a
  117.       key that doesn't even exist, such as holding down the
  118.       right Alt key and typing 250 on your numeric keypad.
  119.  
  120.      -AT THE PROMPT FOR "SCRIPT NAME" BEGIN THE NAME WITH
  121.       THE "!" EXCLAMATION POINT CHARACTER.  As explained on
  122.       page 89 of the DESQview manual, this "!" exclamation
  123.       point triggers the automatic startup execution of all
  124.       the keystrokes that will follow. 
  125.  
  126. AS ABOVE, AVOID THE USE OF CURSOR KEYS, AND NO MOUSE BUTTONS PLEASE!
  127.  
  128.      -After performing the series of keystrokes that you
  129.       wish to use to automatically execute each time that
  130.       DESQview window is opened, you must again depress the
  131.       Shift and tap the {DESQ} key, and select the "-"
  132.       to Finish the Script.
  133.  
  134.      -Since the script was begun in the application window, 
  135.       bring up the Learn menu and save the script.
  136.  
  137. Now your system is fully automated using the DESQview automatic startup macro 
  138. or Learn features described above.  Your machine will boot up and start 
  139. DESQview for you automatically.  Then DESQview will launch your favorite 
  140. applications for you with your DESQview menu startup script.  Finally, each 
  141. application you open will perform the keystrokes that you have dictated in 
  142. your application startup script.  By the time you pour a cup of java and sit 
  143. down at the keyboard, your machine will be custom-tuned to your specifications 
  144. and ready for your work.
  145.  
  146.  
  147.   ************************************************************************
  148.   *This technical note may be copied and distributed freely as long as it*
  149.   *is distributed in its entirety and it is not distributed for profit.  *
  150.   *          Copyright (C) 1991 by Quarterdeck Office Systems            *
  151.   ************************ E N D   O F   F I L E *************************
  152.